package org.zhaijisong.pojo;

public class Library {
    private Integer id;
    private String name;
    private Integer type;
    private Integer companyId;
    private Integer goods;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getGoods() {
        return goods;
    }

    public void setGoods(Integer goods) {
        this.goods = goods;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Library library = (Library) o;

        if (id != null ? !id.equals(library.id) : library.id != null) return false;
        if (name != null ? !name.equals(library.name) : library.name != null) return false;
        if (type != null ? !type.equals(library.type) : library.type != null) return false;
        if (companyId != null ? !companyId.equals(library.companyId) : library.companyId != null) return false;
        if (goods != null ? !goods.equals(library.goods) : library.goods != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (companyId != null ? companyId.hashCode() : 0);
        result = 31 * result + (goods != null ? goods.hashCode() : 0);
        return result;
    }
}
